def my_decorator():
    def wrapper(func):
        def deco(*args, **kwargs):
            print("before hello")
            func(*args, **kwargs)
            print("after hello")
        return deco
    return wrapper


@my_decorator
def say_hi(name):
    print(f"hello, {name}")


say_hi('tpig')
